Teacher Version

Hero Image
Hero Image

Loop with Count Control

Topics Covered

  • Count Mode

Virtual Robot: MoveLoopCountVR.rbg

Physical Robot: MoveLoopCount.rbg

Check Your Understanding

  1. A Loop set to Count Mode will send the Program Flow back...
    1. Every time, forever
    2. Only a limited number of times
    3. If the Touch Sensor is not pressed when the Flow reaches the end of the Loop
    4. If there is nothing after the Loop
  2. What does it mean for a Loop to be "Conditional"?
    1. It only sends the Flow back under certain conditions
    2. The entire Loop can be skipped under certain conditions
    3. The Loop runs faster after it is trained, or "conditioned"
    4. The code runs every time, no matter what
  3. What is the "condition" in this Loop based on?
    1. The distance the robot has traveled
    2. The value of the Touch Sensor
    3. The number of times the Loop has sent the Flow back
    4. The number of seconds the Loop has been running

ClosedClick here for the Answers

B. Only a limited number of times

A. It only sends the Flow back under certain conditions

C. The number of times the Loop has sent the Flow back

© 2016 Robomatter, Inc.

Portions of this product are manufactured under license from Carnegie Mellon University.